<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<meta name="viewport" content="width=1000, initial-scale=1.0, maximum-scale=1.0">
	    <!-- Loading Bootstrap -->
	    <link href="./Public/admin/Flat/dist/css/vendor/bootstrap.min.css" rel="stylesheet">
	    <!-- Loading Flat UI -->
	    <link href="./Public/admin/Flat/dist/css/flat-ui.css" rel="stylesheet">
	    <link href="./Public/admin/Flat/docs/assets/css/demo.css" rel="stylesheet">
	    <link rel="shortcut icon" href="./Public/admin/Flat/img/favicon.ico">
	    <!-- HTML5 shim, for IE6-8 support of HTML5 elements. All other JS at the end of file. -->
	    <!--[if lt IE 9]>
	      <script src="dist/js/vendor/html5shiv.js"></script>
	      <script src="dist/js/vendor/respond.min.js"></script>
	    <![endif]-->
	</head>
	<body>
		<table class="table table-hover">
			<tr class="active">
			  <th width="70">商品id</th>
			  <th>商品名称</th>
			  <th>商品价格</th>
			  <th>商品库存</th>
			  <th>点击量</th>
			  <th>添加时间</th>
			  <th width="270">操作</th>
			</tr>
			{{foreach from="$data" value="$g"}}
			<tr>
				<td>{{$g['gid']}}</td>
				<td>{{$g['gname']}}</td>
				<td>市场价：<span style="text-decoration:line-through ">{{$g['makertprice']}}</span> <br />
					商城价：{{$g['shopprice']}}
				</td>
				<td></td>
				<td>{{$g['click']}}</td>
				<td>{{date('Y-m-d H:i',$g['time'])}}</td>
				<td>
					<a href="{{U('goodsList',array('gid'=>$g['gid']))}}" class="btn btn-sm btn-success">查看货品列表</a>
					<a href="{{U('edit',array('gid'=>$g['gid']))}}" class="btn btn-sm btn-warning">编辑</a>
					<a href="javascript:if(confirm('确定删除吗？'))location.href='{{U('del',array('gid'=>$g['gid']))}}';" class="btn btn-sm btn-danger">删除</a>
				</td>
			</tr>
			{{endforeach}}
		</table>
	</body>
</html>
